package cn.green.core.components.entity;

import cn.green.core.components.database.entity.Database;
import lombok.Data;

/**
 * @author wang.yishu
 * @version 1.0
 * @className DatabaseSql
 * @description 数据库sql实体
 * @date 2024/11/21 15:34
 */
@Data
public class DatabaseSql {
    //sql所属的数据源
    private Database database;
    //sql内容
    private String sql;
    //sql参数
    private Object[] values;
    public DatabaseSql(String sql, Object[] values) {
        this.sql = sql;
        this.values = values;
    }
    public DatabaseSql(Database database, String sql, Object[] values) {
        this.database = database;
        this.sql = sql;
        this.values = values;
    }
}
